package com.yjymm.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author yjymm
 * @date 2020-05-09 21:36
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    /**
     * 过滤静态资源
     */
    @Override
    public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
        configurer.enable();
    }
}
